package com.example.nonacademic_education.constant;

import com.example.nonacademic_education.data.sys.Login;
import lombok.Data;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
@Data
public class SingleFactory {
    private Map<Long, Boolean> isUsed=new ConcurrentHashMap<>();
    private Map<String,Login> logins=new ConcurrentHashMap<>();
    private SingleFactory() {}
    public static SingleFactory getInstance() {
        return Singleton.singleFactory;
    }
    private static class Singleton {
        private static SingleFactory singleFactory = new SingleFactory();
    }

}
